package cn.school.basics.service;

import cn.school.basics.entity.MajorSubject;
import cn.school.basics.vo.BaseSubjectVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

public interface BaseSubjectService {
    /**
     * 分页查询专业信息
     * @param vo
     * @return
     */
    IPage<BaseSubjectVO> findSubjectPageList(BaseSubjectVO vo);

    /**
     * 新增or修改专业信息
     * @param vo
     * @return
     */
    int addOrUpdateSubject(BaseSubjectVO vo);

    /**
     * 删除专业信息
     * @param ids
     * @return
     */
    int deleteSubjectById(List<Long> ids);

    /**
     * 查询专业相关科目
     * @param majorId
     * @return
     */
    List<MajorSubject> getMajorAllSubj(Long majorId);

    List<MajorSubject> getClassAllSubj(String classId);
}
